import type { MenuProps } from 'antd';

export enum RoutePaths {
    home = '/',
    getUserMedia = '/getUserMedia',
    canvasSnap = '/canvasSnap',
    contentShare = '/contentShare',
    videoFilter = '/videoFilter',
    resolutionRatio = '/resolutionRatio',
    volumeMeter = '/volumeMeter',
    audioVisualizer = '/audioVisualizer',

    audioDemo = '/audioDemo',
    fetchAudio = '/fetchAudio',
    gainNode = '/gainNode',
    audioRecoder = '/audioRecoder',
    analyserNode = '/analyserNode',

    yuanshen = '/yuanshen',
}

export const menuList: MenuProps['items'] = [
    { label: '首页', key: RoutePaths.home },
    { label: 'getUserMedia', key: RoutePaths.getUserMedia },
    { label: '截取视频某一帧', key: RoutePaths.canvasSnap },
    { label: '共享屏幕', key: RoutePaths.contentShare },
    { label: '视频滤镜', key: RoutePaths.videoFilter },
    { label: '分辨率配置', key: RoutePaths.resolutionRatio },
    { label: '音量检测', key: RoutePaths.volumeMeter },
    { label: '音频可视化', key: RoutePaths.audioVisualizer },

    { label: '播放MP3音频', key: RoutePaths.audioDemo },
    { label: 'fetch加载音频文件', key: RoutePaths.fetchAudio },
    { label: 'GainNode-处理音量', key: RoutePaths.gainNode },
    { label: '音频录制', key: RoutePaths.audioRecoder },
    { label: '音频可视化', key: RoutePaths.analyserNode },

    { label: '原神弹奏', key: RoutePaths.yuanshen },
];
